<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<div title="维护重点车辆" id="importantVehicleSelectDialog" class="dialogtitle">
	<form id="frmImportantVehicle" onSubmit="return false">
		<div class="searchbox" >
			<span class="fontRed">注:</span>带"<span class="fontRed">*</span>"为必填项
			<input type="hidden" name="id" value="<c:out value='${importantVehicle.id}'/>"/>
			<table id="importantVehicleTable" cellspacing="0" cellpadding="0">
				<tr>
					<td align="right" style="width: 114px;">号牌号码：<span class="fontRed">*</span></td>
					<td><input type="text" id="editPlateNum" name="plateNum" value="<c:out value='${importantVehicle.plateNum}'/>"/></td>
					<td align="right" style="width: 114px;">号牌种类：<span class="fontRed">*</span></td>
					<td style="width: 230px; ">
						<select id="editPlateType" name="plateTypeId">
							<option value="">---请选择---</option>
							<c:forEach items="${lstLicencePlateKind}" var="plateType">
								<option value="${plateType.id}" ${plateType.id == importantVehicle.plateTypeId ? "selected" : ""}><c:out value="${plateType.name}"/></option>
							</c:forEach>
						</select> 
					</td>
					<td><button onclick="ajaxFindVehicleCommon()">获取机动车信息</button></td>
				</tr>
			</table>
		</div>
		<table style="border-top-width:1px;" class="rvimsbordercolor" cellspacing="0" cellpadding="0">
			<tr>
				<td><%@ include file="../vehicle/vehicleCommonView.jsp"%></td>
				<td valign="top">
					<h3>重点信息</h3>
			    	<table cellspacing="0" cellpadding="0">
				    	<tr>
				    		<td align="right" style="width: 114px;">有效期：<span class="fontRed">*</span></td>
							<td style="width: 180px; ">
								<input type="text" id="startTime" name="effectiveStartTime" class="date" readonly="readonly" value="<c:out value='${importantVehicle.effectiveStartTime}'/>"/>
							</td>
							<td align="right" style="width: 118px;">到：<span class="fontRed">*</span></td>
							<td style="width: 180px; ">
								<input type="text" id="endTime" name="effectiveEndTime" class="date" readonly="readonly" value="<c:out value='${importantVehicle.effectiveEndTime}'/>"/>
							</td>
						</tr>
						<tr>
						<tr>
							<td align="right" style="width: 114px;" >增加原因：<span class="fontRed">*</span></td>
							<td style="width: 230px; " colspan="3">
								<textarea class="rvimsbiglabelTextarea" id="cause" name="cause"><c:out value="${importantVehicle.cause}" /></textarea>
							</td>
						</tr>
						<tr>
							<td align="right" style="width: 114px;" >说明：</td>
							<td style="width: 230px; "colspan="3">
								<textarea class="rvimsbiglabelTextarea" id="description" name="description"><c:out value="${importantVehicle.description}" /></textarea>
							</td>
						</tr>
						<tr>
							<td align="right" style="width: 114px;">联系人1：<span class="fontRed">*</span></td>
							<td><input type="text" id="contact1" name="contact1" value="<c:out value='${importantVehicle.contact1}'/>"/></td>
							<td align="right" >联系人方式1：<span class="fontRed">*</span></td>
							<td><input type="text" id="contactWay1" name="contactWay1" value="<c:out value='${importantVehicle.contactWay1}'/>"/></td>
						</tr>
					    <tr>
							<td align="right" style="width: 114px;">联系人2：</td>
							<td><input type="text" id="contact2" name="contact2" value="<c:out value='${importantVehicle.contact2}'/>"/></td>
							<td align="right" >联系人方式2：</td>
							<td><input type="text" id="contactWay2" name="contactWay2" value="<c:out value='${importantVehicle.contactWay2}'/>"/></td>
						</tr>
						<tr>
							<td align="right" style="width: 114px;">联系人3：</td>
							<td><input type="text" id="contact3" name="contact3" value="<c:out value='${importantVehicle.contact3}'/>"/></td>
							<td align="right" >联系人方式3：</td>
							<td><input type="text" id="contactWay3" name="contactWay3" value="<c:out value='${importantVehicle.contactWay3}'/>"/></td>
						</tr>
		    		</table>
				</td>
			</tr>
	   </table>
   </form>
   <div id="infoImportantVehicle" class="fontRed"></div>
</div>
<script>
	$("button").button();
	ajaxFindVehicleCommon();
	$("#startTime").datepicker({
	      changeMonth: true,
	      numberOfMonths: 1,
	      onClose: function( selectedDate ) {
	        $( "#endTime" ).datepicker( "option", "minDate", selectedDate );
	      }
	    });
	$("#endTime").datepicker({
	      changeMonth: true,
	      numberOfMonths: 1,
	      onClose: function( selectedDate ) {
	        $( "#startTime" ).datepicker( "option", "maxDate", selectedDate );
	      }
	    });
	$(".date").datepicker({regional:"zh-CN"});
</script>
